package com.itfreer.gis.map.dictionary;

import com.itfreer.form.api.dictionary.DictionaryEntity;
import com.itfreer.form.api.dictionary.LocalDictionaryBase;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 终端类型
 */
@Component
public class TerminalDictionary extends LocalDictionaryBase {

    @Override
    public String getDictionaryName() {
        return "d_terminal";
    }


    @Override
    protected List<DictionaryEntity> getDictionarys() {

        List<DictionaryEntity> list  = new ArrayList<>();
        DictionaryEntity item = new DictionaryEntity();

        item.setId("1");
        item.setCode("1");
        item.setDisplay("PC端");
        item.setOrder(1);
        list.add(item);

        item = new DictionaryEntity();
        item.setId("2");
        item.setCode("2");
        item.setDisplay("安卓端");
        item.setOrder(2);
        list.add(item);

        item = new DictionaryEntity();
        item.setId("3");
        item.setCode("3");
        item.setDisplay("IOS端");
        item.setOrder(3);
        list.add(item);




        return list;
    }


}
